package com.dg.cuckoo.admin.repository;

import com.dg.cuckoo.admin.dto.compilation.GovernmentMoneyDto;
import com.dg.cuckoo.core.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoveMoneyRepository extends BaseRepository<GovernmentMoneyDto,String> {

    @Query(value = "select * from government_money where type=? limit ?,?",nativeQuery = true)
    List<GovernmentMoneyDto> page(Integer type,Integer page, Integer pageSize);

    List<GovernmentMoneyDto> findByType(Integer type);

}
